#ifndef QTSTRA_INSTEDIT_H
#define QTSTRA_INSTEDIT_H
#pragma once


#include <QDialog>
#include "QtStra_Template.h"
//#include <map>
//#include <vector>
//#include <string>
//
//using namespace std;

class QPushButton;
class QTableWidget;
class QListWidget;

//! [0]
class QtStraInstEdit : public QDialog
{
	Q_OBJECT

public:
	QtStraInstEdit(QTableWidget& source, QWidget * parent = 0);



private slots:

	void OnOKBtnClicked();

	void OnLeftBtnClicked();

	void OnRightBtnClicked();

	bool ExistInTable(QString qstrInst);


private:

	
	QTableWidget* m_table;
	QListWidget* m_list;
	QPushButton* m_left;
	QPushButton* m_right;


	QPushButton* m_okbtn;


	QtStraTemplate* m_parent;

};
//! [0]

#endif